package si.yun.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Id;
import javax.persistence.GeneratedValue;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
/** 
 * @Author Cxc 
 * @Author QQ:1304793236 
 * @Date 2021-08-05 14:42:38 
 */
@Entity
@Table ( name ="sy_user_coupon" )
public class SyUserCoupon  implements Serializable {

	private static final long serialVersionUID =  546023706754317720L;

	/**
	 * 优惠卷信息表主键
	 */
   	@Column(name = "coupon_id" )
	private int couponId;

	/**
	 * 优惠券编号
	 */
   	@Column(name = "coupon_code" )
	private int couponCode;

	/**
	 * 优惠卷名称
	 */
   	@Column(name = "coupon_name" )
	private String couponName;

	/**
	 * 优惠卷金额
	 */
   	@Column(name = "coupon_price" )
	private BigDecimal couponPrice;

	/**
	 * 图片路径
	 */
   	@Column(name = "picture_url" )
	private String pictureUrl;

	/**
	 * 开始时间
	 */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
   	@Column(name = "start_date" )
	private String startDate;

	/**
	 * 结束时间
	 */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
   	@Column(name = "end_date" )
	private String endDate;

	/**
	 * 是否上线(2上线，3不上线)
	 */
   	@Column(name = "online" )
	private int online;

	/**
	 * 发放方式(2自动发放，3活动领取，4人工发放，5无限制)
	 */
   	@Column(name = "mode" )
	private int mode;

	/**
	 * 发行数量
	 */
   	@Column(name = "issue_quantity" )
	private int issueQuantity;

	/**
	 * 剩余数量
	 */
   	@Column(name = "surplus" )
	private int surplus;

	/**
	 * 类型(2商品，3视频,4无限制)
	 */
   	@Column(name = "type" )
	private int type;

	/**
	 * 创建人
	 */
   	@Column(name = "create_id" )
	private int createId;

	/**
	 * 创建时间
	 */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
   	@Column(name = "create_date" )
	private String createDate;

	/**
	 * 更新人
	 */
   	@Column(name = "update_id" )
	private int updateId;

	/**
	 * 更新时间
	 */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
   	@Column(name = "update_date" )
	private String updateDate;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public int getCouponId() {
        return couponId;
    }

    public void setCouponId(int couponId) {
        this.couponId = couponId;
    }

    public int getCouponCode() {
        return couponCode;
    }

    public void setCouponCode(int couponCode) {
        this.couponCode = couponCode;
    }

    public String getCouponName() {
        return couponName;
    }

    public void setCouponName(String couponName) {
        this.couponName = couponName;
    }

    public BigDecimal getCouponPrice() {
        return couponPrice;
    }

    public void setCouponPrice(BigDecimal couponPrice) {
        this.couponPrice = couponPrice;
    }

    public String getPictureUrl() {
        return pictureUrl;
    }

    public void setPictureUrl(String pictureUrl) {
        this.pictureUrl = pictureUrl;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public int getOnline() {
        return online;
    }

    public void setOnline(int online) {
        this.online = online;
    }

    public int getMode() {
        return mode;
    }

    public void setMode(int mode) {
        this.mode = mode;
    }

    public int getIssueQuantity() {
        return issueQuantity;
    }

    public void setIssueQuantity(int issueQuantity) {
        this.issueQuantity = issueQuantity;
    }

    public int getSurplus() {
        return surplus;
    }

    public void setSurplus(int surplus) {
        this.surplus = surplus;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getCreateId() {
        return createId;
    }

    public void setCreateId(int createId) {
        this.createId = createId;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public int getUpdateId() {
        return updateId;
    }

    public void setUpdateId(int updateId) {
        this.updateId = updateId;
    }

    public String getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(String updateDate) {
        this.updateDate = updateDate;
    }
}
